package com.yunao.web;

import com.yunao.commons.serachcore.core.IsearchFactory;
import com.yunao.commons.serachcore.core.exception.SearchInitException;
import com.yunao.web.config.WxConfig;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.autoconfigure.domain.EntityScan;
import org.springframework.boot.context.properties.EnableConfigurationProperties;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;

@SpringBootApplication
@ComponentScan(basePackages = "com.yunao")
@EnableJpaRepositories(basePackages = "com.yunao")
@EntityScan(basePackages = "com.yunao")
@EnableCaching
public class ServerApplicatiom {
    public static void main(String[] args) {
        try {
            IsearchFactory.init();
        } catch (SearchInitException e) {
            e.printStackTrace();
        }
        SpringApplication.run(ServerApplicatiom.class, args);
    }
}
